using FluentNHibernate.Mapping;
using UserManagement.DomainEntity;

namespace UserManagement.Dal.NH.Mappings
{
    public class UserContactMap : ClassMap<UserContact>
    {
        public UserContactMap()
        {
            Table("UserContacts");
            Id(x => x.Id).GeneratedBy.Native();
            Map(x => x.Name).Not.Nullable();
            Map(x => x.Address);
            Map(x => x.Cell);
            Map(x => x.Telephone);
            Map(x => x.Email);
        }
    }
}